package com.moshme.project.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.util.List;
import java.time.LocalDateTime;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.moshme.framework.config.SeparatorCommaToListTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import org.hibernate.validator.constraints.Length;
import lombok.Data;

/**
* 勘察阶段园区外围中压管网表
* @TableName stage_survey_peripheral_mppn
*/
@TableName(value = "stage_survey_peripheral_mppn",autoResultMap = true)
@Data
@ApiModel(value="StageSurveyPeripheralMppn对象", description="勘察阶段园区外围中压管网表")
public class StageSurveyPeripheralMppn implements Serializable {


    /**
    * id
    */
    @TableId(type = IdType.AUTO)
    @NotNull(message="[id]不能为空")
    @ApiModelProperty("id")
    private Long id;


    /**
    * 项目id
    */
    @ApiModelProperty("项目id")
    private Long projectId;


    /**
    * 无隐患
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("无隐患")
    private List<String> noHiddenDangers;


    /**
    * 沉降
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("沉降")
    private List<String> settlement;


    /**
    * 管道暴露
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("管道暴露")
    private List<String> pipelineExposure;


    /**
    * 施工工地
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("施工工地")
    private List<String> constructionSite;


    /**
    * 植被
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("植被")
    private List<String> vegetation;


    /**
    * 重型车间
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("重型车间")
    private List<String> heavyDutyWorkshop;


    /**
    * 容易触碰地方
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("容易触碰地方")
    private List<String> easyTouch;


    /**
    * 化粪池
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("化粪池")
    private List<String> septicTank;


    /**
    * 地铁线
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("地铁线")
    private List<String> subwayLine;


    /**
    * 电力电缆交汇
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("电力电缆交汇")
    private List<String> powerCableIntersection;


    /**
    * 雨污管交汇处
    */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("雨污管交汇处")
    private List<String> waterPipeIntersection;

    /**
     * 其他隐患
     */
    @TableField(typeHandler = SeparatorCommaToListTypeHandler.class)
    @ApiModelProperty("其他隐患")
    private List<String> otherDanger;

    /**
    * 备注
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("备注")
    @Length(max= 255,message="编码长度不能超过255")
    private String notes;


    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    /**
     * 创建人
     */
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("创建人")
    @Length(max= 50,message="编码长度不能超过50")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
    * 修改时间
    */
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    /**
    * 修改人
    */
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("修改人")
    @Length(max= 50,message="编码长度不能超过50")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(exist = false)
    private static final long serialVersionUID=1L;

}

